package StudyCode.summary.zipfile;

import java.io.IOException;
import java.io.InputStream;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CountCharInFileWithInputStream {
	public static void countChars(InputStream in) throws IOException {
		int count = 0;

		while (in.read() != -1)
			count++;

		System.out.println("个数 " + count + " chars.");
	}
}
